package org.s3.project.controller;

import org.s3.project.entity.OrderDetail;
import org.s3.project.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author cfx
 * @version 1.0
 * @Description
 * @date 2025/2/9 9:32
 */
@CrossOrigin(origins = "*")
@RestController
public class OrderDetailController {
    @Autowired
    private OrderDetailService orderDetailService;
    @PostMapping("insertOrderDetails")

    public Boolean insertOrderDetails(@RequestBody List<OrderDetail>  orderDetail) {
      return   orderDetailService.insertOrderDetails(orderDetail);
    }

}
